Simple Subtypes for Specification
نویسندگان
چکیده
Type systems have been studied extensively for programs, but not for specifications. is paper presents a type system for the increasingly important class of specification languages based on first-order constraints over relational data models, which have applications in software modelling, architectural description, web ontologies, access control, etc. e system has rather a different flavour from a traditional type system. From a user’s perspective, the type of an expression is nothing more than another relational expression approximating its value. Computationally, a type is a relation, and types are constructed from relational operators. Type errors indicate semantic redundancies, in which expressions could be replaced by constants without affecting the meaning of the specification as a whole. e system supports subtypes and union types without the need for downcasts, and a form of overloading that decouples semantics from typing. Its simplicity, it turns out, derives from the power and simplicity of relational join.
منابع مشابه
Polymorphic Type Checking with Subtypes in Prolog
In this paper, we give an executable specification of a state-of-the-art polymorphic type checking system with subtypes in Prolog. We show that the implementation reduces to modifying simple well-known rectainterpreters into type meta-interpreters and applying the so-called generate-and-test approach to programming in Prolog. This study emphasizes that Prolog is suitable as a language for defin...
متن کاملSubtyping, Modular Specification, and Modular Verification for Applicative Object-Oriented Programs
We present a formal specification language and a formal verification logic for a simple object-oriented programming language. The language is applicative and statically typed, and supports subtyping and messagepassing. The verification logic relies on a behavioral notion of subtyping that captures the intuition that a subtype behaves like its supertypes. We give a formal definition for legal su...
متن کاملA New Nonlinear Specification of Structural Breaks for Money Demand in Iran
In a structural time series regression model, binary variables have been used to quantify qualitative or categorical quantitative events such as politic and economic structural breaks, regions, age groups and etc. The use of the binary dummy variables is not reasonable because the effect of an event decreases (increases) gradually over time not at once. The simple and basic idea in this paper i...
متن کاملSubtypes for Specifications: Predicate Subtyping in PVS
A specification language used in the context of an effective theorem prover can provide novel features that enhance precision and expressiveness. In particular, typechecking for the language can exploit the services of the theorem prover. We describe a feature called “predicate subtyping” that uses this capability and illustrate its utility as mechanized in PVS. Keywords—Formal methods, specifi...
متن کاملSimple Pile-Soil Interaction Effect on Seismic Response of Fixed Offshore Platforms
In this paper effect of pile-soil consideration in obtaining seismic response offshore structure is assessed due to earthquake loading. InducedSeismic force is one of the most important excitations for the dynamic response of an offshore structure. According to API, Seismic forces should be accounted in platform design for seismically active regions in order to determine the allowable seismic r...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2003